package code

abstract class Cancha(precioBase: Double, nrocancha: Int){

  def calculaPrecioFinal(): Double = {
    //return precioBase
    return this.sumarAlPrecio(precioBase)
  }
  def sumarAlPrecio(precio: Double): Double = { return precioBase }
  def getPrecioBase():Double={return precioBase}

}